Skip to content

feat(UI): update API domain to https#1278

Merged
genedna merged 1 commit into
gitmono-dev:mainfrom
benjamin-747:main
Jul 28, 2025
Merged

feat(UI): update API domain to https#1278
genedna merged 1 commit into
gitmono-dev:mainfrom
benjamin-747:main

Conversation

@benjamin-747

Copy link
Copy Markdown
Collaborator

No description provided.

@vercel

vercel Bot commented Jul 28, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mega ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 28, 2025 11:25am

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the API domain configuration to use HTTPS instead of HTTP for development environments, improving security by ensuring encrypted communication across all environments.

  • Updates development API URLs from HTTP to HTTPS protocol
  • Modifies WebSocket connections to use secure WSS protocol in development
  • Updates Content Security Policy rules to reflect the HTTPS changes

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
moon/packages/config/src/index.ts Updates development URLs to use HTTPS/WSS protocols for API, auth, and sync services
moon/apps/web/next.config.js Updates CSP rules to allow HTTPS connections to development domains
moon/apps/sync-server/src/api.ts Changes base API URL to use HTTPS protocol

@@ -1,11 +1,11 @@
const WEB_URL_PROD = 'https://app.gitmono.com'
const WEB_URL_DEV = 'http://app.gitmono.test:3000'
const WEB_URL_DEV = 'http://app.gitmono.test'

Copilot AI Jul 28, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The WEB_URL_DEV still uses HTTP protocol while other development URLs have been updated to HTTPS. For consistency and security, consider updating this to use HTTPS as well.

Suggested change
const WEB_URL_DEV = 'http://app.gitmono.test'
const WEB_URL_DEV = 'https://app.gitmono.test'

Copilot uses AI. Check for mistakes.
Comment on lines 5 to 8
if (process.env.NODE_ENV === 'production') {
baseUrl = 'http://api.gitmega.com'
baseUrl = 'https://api.gitmega.com'
}

Copilot AI Jul 28, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The production and development environments are now using the same URL. This appears redundant - consider removing the conditional assignment or ensuring the production URL is correctly differentiated from development.

Copilot uses AI. Check for mistakes.
@genedna
genedna added this pull request to the merge queue Jul 28, 2025
Merged via the queue into gitmono-dev:main with commit bd5a60d Jul 28, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants